<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<html>
<head>
<title> 知识点选择 </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
<SCRIPT language="JavaScript" src="/js/FoshanRen.js"></SCRIPT>
<SCRIPT language="JavaScript" src="/js/xmlhttp.js"></SCRIPT>

<SCRIPT language="JavaScript">
function checkIt(){
	var objForm = document.forms[0];
	var form = opener.document.forms[0];
	if (form){
		form.pointid.value = objForm.dicId.value;
		form.pointname.value = objForm.dicName.value;
	}
	window.close();
}
function getDicName(dicId,strDicName){
	var objForm = document.forms[0];
	objForm.dicId.value = dicId;
	objForm.dicName.value = strDicName;
}
function getTypeList(pointid){
		var typecontent = document.getElementById('typecontent');
		if(typecontent){
			typecontent.innerHTML= "数据正在加载...";
			send_request(function(value){typecontent.innerHTML=value}, '<s:url action="question_selectUI.html"/>?pointid='+ pointid, true);
		}
}
</SCRIPT>
<style>
<!--
.inputText{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #666666;
	border: 1px solid #999999;
}
body {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 12px;
	color: #666666;
}
-->
</style>
</head>

<body>
<c:set var="menuout" value=""/><c:forEach items="${menupoints}" var="menu">
	<c:set var="menuout" value="&gt;&gt;<a href='question_selectUI.html?pointid=${menu.id}'>${menu.name}</a> ${menuout}"/>
</c:forEach>
知识点列表,请选择知识点:<br>
导航:<a href='<s:url action="question_selectUI.html"/>'>顶级目录</a> <c:out value="${menuout}" escapeXml="false"/>
<form method="post" name="main" action="">
<input type="hidden" name="dicId"/>
<input type="hidden" name="dicName"/>
<div id="typecontent"></div>
<div style="text-align:left;border:darkseagreen 1px solid;padding:10;margin:10;">
	<c:forEach items="${points}" var="point" varStatus="loop">
		<span style="width:20%;height:30;text-align:left">		
		<c:if test="${fn:length(point.childs)>0}">
		<a href="<s:url action="question_selectUI.html"/>?pointid=${point.id}"><b>${point.name}</b></a></c:if>
		<c:if test="${fn:length(point.childs)==0}">
			<INPUT TYPE="radio" name="point" onclick="getDicName('${point.id}','${point.name}')"/>${point.name}</c:if>
		</span>
		<c:if test="${loop.count%5==0}">
			<br/>
		</c:if>
	</c:forEach>
</div>
<div style="text-align:center">
	<input type='button' class="frm_btn" value=" 确 认 " onClick="javascript:checkIt()">
	<input type='button' class="frm_btn" onClick="javaScript:window.close()" value=" 取 消 "> 
</div>
</form>
</body>
</html>